﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using Ryland.DbUtility;

namespace ConsoleDbTest
{
    class Program
    {
        static void Main(string[] args)
        {
            String provider = ConfigurationManager.AppSettings["Provider"];
            String connectStr = ConfigurationManager.AppSettings[provider];


            DbAccessAbstract dbAccess = new DbAccessAbstract(connectStr);

            Console.WriteLine(connectStr);
            Console.ReadKey();
        }


        private static void log()
        {
            // Create the source, if it does not already exist.
            if (!EventLog.SourceExists("MySource"))
            {
                EventLog.CreateEventSource("MySource", "MyNewLog");
                Console.WriteLine("CreatingEventSource");
            }

            // Create an EventLog instance and assign its source.
            EventLog myLog = new EventLog();
            myLog.Source = "MySource";

            // Write an informational entry to the event log.    
            myLog.WriteEntry("Writing to event log.");
        }
    }
}
